﻿<%@ Page Title="Cadastro Colaborador" Language="C#" MasterPageFile="~/paginas/MasterPage.master" AutoEventWireup="true"
    CodeFile="FuncionarioNovo.aspx.cs" Inherits="paginas_Funcionarios"%>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1>
        Cadastro de Colaboradores</h1>
    <fieldset>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <div class="input top text">
            <asp:Label ID="lblFuncionario" runat="server" AssociatedControlID="ddlPessoa" Text="Pessoa"></asp:Label>
            <asp:DropDownList ID="ddlPessoa" runat="server" DataSourceID="SqlDataSourcePessoa"
                DataTextField="Nome" DataValueField="Id">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSourcePessoa" runat="server" ConnectionString="<%$ ConnectionStrings:DefaultConnectionString %>"
                SelectCommand="SELECT [Id], [Nome] FROM [Pessoas]"></asp:SqlDataSource>
        </div>
        <div class="input top text">
            <asp:Label ID="lbl_admissao" AssociatedControlID="txt_admissao" runat="server" Text="Data Admissão"></asp:Label>
            <asp:TextBox ID="txt_admissao" runat="server" ></asp:TextBox>
            <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" Mask="99/99/9999"
                TargetControlID="txt_admissao" ClearMaskOnLostFocus="false">
            </asp:MaskedEditExtender>
        </div>
        <div class="input top text">
            <asp:Label ID="lbl_demissao" AssociatedControlID="txt_demissao" runat="server" Text="Data Demissão"></asp:Label>
            <asp:TextBox ID="txt_demissao" runat="server" ></asp:TextBox>
            <asp:MaskedEditExtender ID="MaskedEditExtender2" runat="server" Mask="99/99/9999"
                TargetControlID="txt_demissao" ClearMaskOnLostFocus="false">
            </asp:MaskedEditExtender>
            </div>
            <div class="input top text">
                <asp:Label ID="lbl_comissao" AssociatedControlID="txt_comissao" runat="server" Text="% Comissão"></asp:Label>
                <asp:TextBox ID="txt_comissao" runat="server" ></asp:TextBox>
                <br />
            </div>
            <div class="input top text">
                <asp:Label ID="lbl_horarioini" runat="server" AssociatedControlID="txt_horarioini" Text="Primeiro Turno"></asp:Label>
                <asp:TextBox ID="txt_horarioini" runat="server" CssClass="data" ></asp:TextBox>
                <asp:MaskedEditExtender ID="MaskedEditExtender3" runat="server" Mask="99:99" TargetControlID="txt_horarioini"
                    ClearMaskOnLostFocus="false">
                </asp:MaskedEditExtender>
                <asp:Label ID="lbl_horariofim" runat="server" Text="a"></asp:Label>
                <asp:TextBox ID="txt_horariofim" runat="server" CssClass="data" ></asp:TextBox>
                <asp:MaskedEditExtender ID="MaskedEditExtender4" runat="server" Mask="99:99" TargetControlID="txt_horariofim"
                    ClearMaskOnLostFocus="false">
                </asp:MaskedEditExtender>
            </div>
            <div class="input top text">
                <asp:Label ID="Label1" runat="server" AssociatedControlID="txt_horarioinit" Text="Segundo Turno"></asp:Label>
                <asp:TextBox ID="txt_horarioinit" runat="server" CssClass="data" ></asp:TextBox>
                <asp:MaskedEditExtender ID="MaskedEditExtender5" runat="server" Mask="99:99" TargetControlID="txt_horarioinit"
                    ClearMaskOnLostFocus="false">
                </asp:MaskedEditExtender>
                <asp:Label ID="lbl_horarioinit" runat="server" Text="a"></asp:Label>
                <asp:TextBox ID="txt_horariofimt" runat="server" CssClass="data" ></asp:TextBox>
                <asp:MaskedEditExtender ID="MaskedEditExtender6" runat="server" Mask="99:99" TargetControlID="txt_horariofimt"
                    ClearMaskOnLostFocus="false">
                </asp:MaskedEditExtender>
            </div>
            <div class="input btn text">
                <asp:Button ID="btnSalvar" runat="server" Text="Salvar" OnClick="btnSalvar_Click" />
                <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" OnClick="btnCancelar_Click" />
                <asp:Button ID="btnExcluir" runat="server" Text="Excluir" OnClick="btnExcluir_Click" OnClientClick="return confirm('Deseja excluir o registro?')"/>
                <br />
            </div>
    </fieldset>
</asp:Content>
